package pers.wangyu.crawler.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import lombok.Data;

/**
 * 书籍实体
 *
 * @author wangyu
 * @Date 2018-05-05 22:58
 */
@Data
@Entity
@Table(name = "c_books")
public class Book extends UuidEntity{

  /**
   * 书名
   */
  @Column(name = "book_name")
  private String BookName;

  /**
   * 作者
   */
  @Column(name = "author")
  private String author;

  /**
   * 评分
   */
  @Column(name = "score")
  private Double score;

  /**
   * 评论人数
   */
  @Column(name = "rating_sum")
  private Long ratingSum;

  /**
   * 出版社
   */
  @Column(name = "press")
  private String press;

  /**
   * 出版日期
   */
  @Column(name = "publication_date")
  private String publicationDate;

  /**
   * 价格
   */
  @Column(name = "price")
  private String price;
}
